cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(eigen_path "${PROJECT_SOURCE_DIR}/../eigen-3.4.0_bin")
if(DEFINED CMAKE_PREFIX_PATH)
    list(APPEND CMAKE_PREFIX_PATH ${eigen_path})
else()
    set(CMAKE_PREFIX_PATH ${eigen_path})
endif()
message(STATUS "cmake_prefix_path: ${CMAKE_PREFIX_PATH}")

project(test_eigen LANGUAGES CXX)

# find_package (Eigen3 3.4 REQUIRED NO_MODULE)
find_package (Eigen3 3.4 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIRS})



add_subdirectory(test)
